#include "vector.c"
#include <stdio.h>
#include <assert.h>

int main(void) {

    MyVector *vecPtr = myVectorNew(20);
    printf("%d\n", vecPtr->capacity);
    printf("%d\n", vecPtr->size);
    printf("%d\n", vecPtr->data);

    for (int i = 0; i < 64; i++) {
        myVectorPush(vecPtr, 9900+i);
    }

    assert(vecPtr->capacity == 128);

//    for (int i = 0; i < 64; i++) {
//        myVectorInsert(vecPtr, i, 9900+i);
//    }

//    printf("================ after push ================\n");
//    printf("%d\n", myVectorAt(vecPtr, 23));
//    printf("size: %d\n", vecPtr->size);
//    printf("capacity: %d\n", vecPtr->capacity);

//    myVectorDelete(vecPtr, 0);
//    printf("================ after delete ================\n");
//    printf("%d\n", myVectorAt(vecPtr, 62));
//    printf("size: %d\n", vecPtr->size);
//    printf("capacity: %d\n", vecPtr->capacity);

//    for (int i = 0; i < 64; i++) {
//        myVectorPop(vecPtr);
//    }
//    printf("================ after pop ================\n");
//    printf("%d\n", myVectorAt(vecPtr, 0));
//    printf("%d\n", vecPtr->capacity);

    return EXIT_SUCCESS;
}
